package com.onetime.mall.trading.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 留言表
 * 
 * @author liyixuan
 * @email liyixuan106@163.com
 * @date 2022-03-26 19:38:29
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("sh_message")
public class MessageEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 自增主键
	 */
	@TableId
	private Long id;
	/**
	 * 用户主键id
	 */
	private Long userId;
	/**
	 * 闲置主键id
	 */
	private Long idleId;
	/**
	 * 留言内容
	 */
	private String content;
	/**
	 * 留言时间
	 */
	private Date createTime;
	/**
	 * 所回复的用户
	 */
	private Long toUser;
	/**
	 * 所回复的留言
	 */
	private Long toMessage;

}
